package com.gee.spring.cloud.aerospace.simulate.core.domain;

import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author gepengjun
 * @since 2024/7/10 16:28
 */
public class LinkedQueue<E> {


    static class Node<E> {
        E item;

        Node<E> next;

        Node(E x) { item = x; }
    }

    private final int capacity;

    private final AtomicInteger count = new AtomicInteger();

    transient Node<E> head;

    private transient Node<E> last;

    private final AtomicBoolean putBool = new AtomicBoolean(true);

    private final AtomicBoolean takeBool = new AtomicBoolean(true);

    public LinkedQueue() {
        this.capacity = Integer.MAX_VALUE;
    }

    public LinkedQueue(int capacity) {
        this.capacity = capacity;
    }

    public void clear() {

    }

    public boolean offer(E e) {
        return false;
    }

    public E remove() {
        return null;
    }

    public E poll() {
        return null;
    }

    public E element() {
        return null;
    }

    public E peek() {
        return null;
    }
}
